<table>
    <tbody>
    
        <tr class="prop">
            <td class="name">
                <label for="masterProduct"><g:message code="b2b.bomDetail.bom.label" default="Bom" /></label>
            </td>
            <td class="value ${hasErrors(bean: bomDetailInstance, field: 'masterProduct', 'errors')}">
                <g:select name="masterProduct.id" from="${org.icress.fusion.b2b.Bom.list()}" optionKey="id" value="${bomDetailInstance?.bom?.id}"  />
            </td>
            <td class="name">
                <label for="serialNumber"><g:message code="b2b.bomDetail.serialNumber.label" default="Serial Number" /></label>
            </td>
            <td class="value ${hasErrors(bean: bomDetailInstance, field: 'serialNumber', 'errors')}">
            	<g:textField name="serialNumber" maxlength="2" value="${bomDetailInstance?.serialNumber}" />
            </td>
        </tr>
        
        <tr class="prop">
            <td class="name">
                <label for="detailProduct"><g:message code="b2b.bomDetail.detailProduct.label" default="Detail Product" /></label>
            </td>
            <td class="value ${hasErrors(bean: bomDetailInstance, field: 'detailProduct', 'errors')}">
                <g:select name="detailProduct.id" from="${org.icress.fusion.b2b.Product.list()}" optionKey="id" value="${bomDetailInstance?.detailProduct?.id}"  />
            </td>
            <td class="name">&nbsp;</td>
            <td class="value">&nbsp;</td>
		</tr>    
    </tbody>
</table>